Add isTargetOp() for better checking if a target is valid
No more really long conditionals everywhere