This is what is causing the error. Did you try running this method? I ask because I'm pretty sure this would have thrown a parse error if you did. Please don't open pull requests without checking to make sure what you write works. My apologies if you did check if it worked before submitting a PR, it just looks like you didn't.