file_exists() is used for checking for a file, but what about a directory? I've checked for a similar function, but haven't found something similar.
Is there one?
Welp, found my answer:
$dirname = "/path/to/folder/";
if(is_dir($dirname)){ echo "exists"; }else{ echo "does not exist"; }