Use helper rmdir method
Do not delete folders when the folder is an empty string. Closes #116
fix some phpcs errors
more docblock issues
Merge pull request #229 from josegonzalez/116-empty-dir-field

116 empty dir field