Added method to allow checking for a valid transition