replace file system check with WF check
whitespace
I've restored my faith in equality. And wfDebug.
addressing code review
addressed code review
added unit tests
@drsnyder code flow fix
@drsnyder replaced type casting with empty()
@drsnyder - simplifications
refined unit tests
refined the flow
Merge pull request #4778 from Wikia/platform-323-create-wiki-upload-dir-check

replace file system check with WF check