PHP Fatal error - empty() only supports variables