Fixing stupid empty() issue that occurs with versions of PHP older than 5.5