Should this be a check simpilar to the one above for params.key? A bit of an odd use case, perhaps worth logging.