Return undefined when path to resolve empty