private function cleanCondition($condition)
    {
        if (is_array($condition)) {
            $condition = array_filter($condition);
            if (empty($condition)) {
                $condition = null;
            }
        }

        return $condition;
    }
private function cleanCondition($condition)
    {
        if (is_array($condition)) {
            $condition = array_filter($condition);
            if (empty($condition)) {
                $condition = null;
            }
        }

        return $condition;
    }
private function cleanCondition ( $ condition ) { if ( is_array ( $ condition ) ) { $ condition = array_filter ( $ condition ) ; if ( empty ( $ condition ) ) { $ condition = null ; } } return $ condition ; }
Ensure proper building of condition

@param array|string $condition The condition to apply

@return array|string|null
Ensure proper building of condition