[eluser]TheFuzzy0ne[/eluser]
It seems you have the right format, but I'm unsure why the method isn't working. The line where the error is throw seems to be:
However, $not doesn't seem to be used within that scope. I wouldn't normally advise modifying system files, but in this case, I think you can safely comment that line out. I'll see if I can find the time to test this method out later, and submit a fix for it.