public function findOneByIdOrSlug($idOrSlug, $allow404 = false)
    {
        if (is_numeric($idOrSlug)) {
            $content = $this->find($idOrSlug);
        } else {
            $content = $this->findOneBySlug($idOrSlug);
        }

        // If no content was found for the passed id, return the 404 page
        if (!$content && $allow404 == true) {
            $content = $this->findOneBySlug('404');
        }

        return $content;
    }