First line: function osc_is_banned($email = '', $ip = null)
It may be that I am too uninformed when it comes to assigning variables within functions.

*

MB Themes

it's default value for function param.
https://www.php.net/manual/en/functions.arguments.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Very funny and well-known...
That is precisely where the passed variable gets overwritten.