Check whether a value is empty.