Function to test is a value is empty.