I would prefer to use `is_resource` here. If you pass a string, you will see a fatal error, because fpassthru can only handle resources.