Fix isFileHeader/isFileFooter Params

Now passing full options array