updating code to handle results, models within boolean context.