/**
* checks if path is valid.
*
* @param string $path path of route
* @param string $webspaceKey key of portal
* @param string $languageCode
* @param string $segmentKey
*
* @return bool
*/
public function isValid($path, $webspaceKey, $languageCode, $segmentKey = null)
{
return $this->cleaner->validate($path) && $this->mapper->unique($path, $webspaceKey, $languageCode, $segmentKey);
}