gear/Util/Collection.php
/**
     * Check if key is valid.
     *
     * @return boolean True if key is valid, false otherwise.
     */
Check if key is valid.
@return boolean True if key is valid, false otherwise.
Check if key is valid . @return boolean True if key is valid false otherwise .
public function valid()
    {
        $key = $this->key();
        return ($key !== false && $key !== null);
    }
public function valid ( ) { $ key = $ this -> key ( ) ; return ( $ key !== false && $ key !== null ) ; }
Check if key is valid.
Check if key is valid .