Currently, the docs do not mention that the path you specify inside the function arguments must be an absolute path. The example shown specifies a webroot relative path which will always return "NO" for the returned value.
Improve the documentation to state absolute path required.
Fix the example to show how an absolute path being used or include the expandPath() wrapper around the relative path.
Currently, the docs do not mention that the path you specify inside the function arguments must be an absolute path. The example shown specifies a webroot relative path which will always return "NO" for the returned value.