If there is no Categories line in the .desktop file, get_categories() returns null, not an empty array.