check for given path