MDL-39496 Admin: Reduce excessive is_array tests in admin_category
MDL-39496 Admin: Reduce excessive is_array tests in admin_category

admin_category::category_cache is a protected value which is only ever
treated as an array. We shouldn't need to test that it's an array each time
we use it.

dilawar/moodle