Fixed wrong/redundant comparison according to documentation in comment above.