This should actually be isCreatable(dirname($path))