Removed useless if branch