Use GetValue() to check a category's photo to prevent php notices.