title: How to show oroinc frontend datagrid conditionaly?
body: <p>I have this grid in orocommerce: 
  <code>
  logistics-agronomist-grid-frontend:
      extends: logistics-agronomist-grid-base
      acl_resource: kggroup_logistics_frontend_agronomist_view
      update: false
      delete: false
      source:
        type: orm
        query:
          where:
            and:
              - postCode.postCode  = :post_code
        bind_parameters:
          - post_code
      columns:
        agronomistPostCode:
          manageable: false
          renderable: false
      options:
        frontend: true
  </code>
  I need somehow to make a condition if grid is empty render everything, so I need where if or something <code>
  query:
          where:
            and:
              - postCode.postCode  = :post_code
  </code>
  At this place, i cannot figure out how to do it</p>
  
  <p>I tried to look templates to make conditions, but grid renders somewhere in core, the place i cannot change, I tried to write CASE WHEN '' THEN '' ELSE '' END but i got errors, and IF statments doesn't exists in this query builder</p>