Changed to return correct value for check failure