public function getRewrite($condition)
    {

        // iterate over all rewrites
        foreach ($this->getRewrites() as $rewriteNode) {
            // if we found one with a matching condition we will return it
            if ($rewriteNode->getCondition() === $condition) {
                return $rewriteNode;
            }
        }

        // we did not find anything
        return false;
    }