Simple, quick job.

Just installed a new theme on my site and am getting an error code:

Fatal error: Cannot use object of type WP_Term as array in /home/awardsc/public_html/wp-content/themes/dw-focus/inc/template-tags.php on line 241

When I check the line, it says:

if ( 0 == $category[0]->parent ) {

Looking for this done within the hour.

If done well and quickly, could use the person for on-going work.