I fixed the conditional issue and added a value to the UNSHIFT line and it still gives the error.