check segue before sending it