Switch to empty() function