fix to return [] instead of null for blank array