public function count_null_id_columns() { if (is_array($this->_get_id_column_name())) { return count(array_filter($this->id(), 'is_null')); } else { return is_null($this->id()) ? 1 : 0; } }