Add onempty attribute so the dev can handle empty results. Intended to solve #16