small fix for empty array