protected function getNextAvailableToken() { foreach ($this->tokens as $data) { if ($data['available']) { return $data; } } return false; }