Folded up the logic for the if statement 

This is a minor code style fix for the method "FAILED" [removed 3 lines and simplified the statement]
Merge pull request #356 from monksy/patch-3

Folded up the logic for the if statement