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]