Check that state variable is defined in isMatch()