please use ``(Boolean)`` to cast to boolean rather than ``!!``. This trick can be used in JS to be shorter, but we don't have this constraint in PHP