`$feed->setIsPublic('1' === $request->request->get('public'));` seems enough