I would suggest to keep this check, it gives a more specific error message.