Do OR instead of AND here.
Merge pull request #117 from sourishkrout/master

Logical mistake