I think this function should be `getMediaQueries(query)` and it can always return an array.