return empty array instead of undefined