wouldn’t it be wiser to return early if the second check fails?