handle empty in c arrays