isStateActive

Checks if the given state is active by its class.