Removed useless boolean conditions.