Change response check method to be compatible with non Rails apps