Adding prototype of checking for state

yupp