useless check, remove never reached code