public function isStoreSelected(\Magento\Store\Model\Store $store) { return $this->getStoreId() !== null && (int) $this->getStoreId() === (int) $store->getId(); }