Let's create the error at the top of the function.