public function orCreate($args) { $query = clone $this->_queryForWrite(); if (!$query->count()) { $this->_schema->newInstance(func_get_args())->save(); } return $this; }