could you use ``if (empty(...))`` instead ?