why not check this like above and give a similar error message?