I'm almost positive there is no way to cast a specific spell on your current target, based on whether or not you have a focus set. The best that you can do is to check if a target exists, and then cast a spell on that same target.