If they choose A or B, and there are no legal targets available, ask them to choose another mode. You can't cast Phone a Friend with an illegal mode chosen. Yes, you could just eliminate modes that can't be chosen from the beginning, but what fun is that? If an opponent ends up choosing the mode, they also must choose a legal mode.