test(travis): use inline if in keys()