protected function applyBoolean($query, $booleanKeys, $filters = array())
    {
        foreach( $booleanKeys as $key ) {
            if( !$this->hasBoolean( $filters, $key ) ) {
                continue;
            }

            $query = $query->where($key, '=', $filters[ $key ]);
        }

        return $query;
    }