private function isItemModel($itemModel) { if (is_object($itemModel) && get_class($itemModel) == config('laracart.item_model')) { return true; } return false; }