Superfluous statement. Same result with:

    $event->addCacheParameter('is_facebook_available', count($errors) === 0);