Return undefined when filepath is null or undefined
1.0.36