This would be sufficient:

    if ( ! empty($data['store_object']))