Controller/SectionTreeController.php
public function getIsurlavailableAction($url) {
		$manager = $this->get('doctrine_phpcr.odm.default_document_manager');

		try {
			$routeInfo = $this->get('router')->match($url);

			if(! isset($routeInfo['type']) || ! isset($routeInfo['_route'])) {
				$view = View::create(array(
					"forbidden" => true
				), 200);
				return $this->handleView($view);
			}
			$route = $manager->find(null, $routeInfo['_route']);
			$document = $route->getContent();
			if($document && $document instanceof Page) {
				$sectionConfig = $document->getSection()->getSectionConfig();

				$view = View::create(array(
					"id" => $sectionConfig->getId()
				), 200);
				return $this->handleView($view);
			}
		} catch (\Exception $e) {
		}
		$view = View::create(array(
			"available" => true
		), 200);
		return $this->handleView($view);
	}
public function getIsurlavailableAction($url) {
		$manager = $this->get('doctrine_phpcr.odm.default_document_manager');

		try {
			$routeInfo = $this->get('router')->match($url);

			if(! isset($routeInfo['type']) || ! isset($routeInfo['_route'])) {
				$view = View::create(array(
					"forbidden" => true
				), 200);
				return $this->handleView($view);
			}
			$route = $manager->find(null, $routeInfo['_route']);
			$document = $route->getContent();
			if($document && $document instanceof Page) {
				$sectionConfig = $document->getSection()->getSectionConfig();

				$view = View::create(array(
					"id" => $sectionConfig->getId()
				), 200);
				return $this->handleView($view);
			}
		} catch (\Exception $e) {
		}
		$view = View::create(array(
			"available" => true
		), 200);
		return $this->handleView($view);
	}
Get the Sections records corresponding to the url or null
@param ParamFetcherInterface $paramFetcher

@Route(requirements={"url"=".+"})

@return \Symfony\Component\HttpFoundation\Response