Added missing return to target check function