removed useless check