augmenting the isAcceptedFileExtension so that it can be used when the filename reference is only a string and not a form field $_FILE reference
whitespace cleanup