Throwing an error if Optional parameter doesn't have any parameterized type