public function hasMany(array $params)
    {
        foreach ($params as $param) {
            if (!$this->has($param)) {
                return false;
            }
        }

        return true;
    }
public function hasMany(array $params)
    {
        foreach ($params as $param) {
            if (!$this->has($param)) {
                return false;
            }
        }

        return true;
    }
public function hasMany ( array $ params ) { foreach ( $ params as $ param ) { if ( ! $ this -> has ( $ param ) ) { return false ; } } return true ; }
Checks whether several parameters are defined at once

@param array $params
@return boolean
Checks whether several parameters are defined at once