Warning: opendir(path/to/dir): failed to open dir: No such file or directory

Check if folder exists