Use empty() function.