Codes had a wrong name associated with them that was resulting the method returning false