Adds an `.isBinary()` function to the `file` object, similar to `file.isNull()` and `file.isStream()`.