protected function hasKey($filters, $key)
    {
        return ( array_key_exists($key, $filters) && $filters[ $key ] != 0 && $filters[ $key ] != '' );
    }
protected function hasKey($filters, $key)
    {
        return ( array_key_exists($key, $filters) && $filters[ $key ] != 0 && $filters[ $key ] != '' );
    }
protected function hasKey ( $ filters , $ key ) { return ( array_key_exists ( $ key , $ filters ) && $ filters [ $ key ] != 0 && $ filters [ $ key ] != '' ) ; }
Verify if a specific filter key can be used as a filter value

@param   array $filters          The filters that are to be applied to the query. The key identifies the database column, the value in the array is the value that is to be matched in the query
@param   string $key             The filter key that must be verified
@return boolean
Verify if a specific filter key can be used as a filter value