check if transition possible