check for state of NULL