Fixed empty() usage (parse error in PHP < 5.5)