Null check on the states