Remove empty() instead just use variable value to check empty