please add a comment e.g. 

// See if the path matches an extension