Typo fix, $paths to $path for in_array.