Unable to implement casting because of the above; instead I've set strict type checking to the in_array() call and amended the supportedSchemes to have null instead of an empty string.