getObjectsFix

return empty array if keys is empty or not an array