Ensured compatibility with older PHP versions (arbitrary expressions in empty())