return empty array instead of undefined if JSON.parse() fails