public function Braintree_Collection::exists in Commerce Braintree 7
Determine if index exists
Parameters
integer $index:
Return value
boolean
1 call to Braintree_Collection::exists()
- Braintree_Collection::offsetExists in braintree_php/
lib/ Braintree/ Collection.php - Determine if offset exists Implements ArrayAccess
File
- braintree_php/
lib/ Braintree/ Collection.php, line 84
Class
- Braintree_Collection
- Generic Collection class
Code
public function exists($index) {
if ($index >= $this
->count()) {
return false;
}
return true;
}