We first check if the category exists before using it.

We where getting a notice and it was because the $cat_obj was assuming it existed so when someone was requesting a category that didn't exist was throwing the notices.