fix(client): return error if unit list is empty
fix(client): check if unit exists