Could perhaps just be a throw if empty else return data?