public function hasPending($fromTables, $toTables, array $protectedTableNames)
    {
        if ($this->pending !== null) {
            return $this->pending;
        }
        $this->compare($fromTables, $toTables, $protectedTableNames);

        return $this->pending;
    }