I've used every instead of foreach to short-circuit when path becomes undefined at any point. 	005a9da