'Check if the resolved target is valid.
:param cfg:         The CFG analysis object.
:param int target:  The target to check.
:return:            True if the target is valid. False otherwise.
:rtype:             bool'

def _is_target_valid(self, cfg, target):

    if cfg._addr_in_exec_memory_regions(target):
        return True
    if cfg.project.is_hooked(target):
        return True
    return False
