typo &  cosmetics
remove unecessary check for empty path