if you assign allowedSchemes to a variable, you should use that variable here. otherwise just use getAllowedSchemes twice, would be fine by me too. actually better, as the error is really unusual to be thrown.