caused error: arbitrary expressions in empty() supported only from php 5.5