testing for nil path