protected function validateGaProfileSettings()
    {
        $profiles = $this->getSubmitted('ga_profile_id', array());

        if (empty($profiles)) {
            $this->setError('ga_profile_id', $this->text('Profile ID is required'));
            return false;
        }

        $stores = $this->store->getList();

        foreach ($profiles as $store_id => $profile_id) {

            if (empty($profile_id)) {
                $this->setError('ga_profile_id', $this->text('Profile ID is required'));
                return false;
            }

            if (empty($stores[$store_id])) {
                $this->setError('ga_profile_id', $this->text('Unknown store ID'));
                return false;
            }
        }

        return true;
    }