prevents the .split method to fail when the path variable is set to "false"