handleIgnore function - variable type error

If (int)0 is used as a variable value in the $item array, the ignore function will unset it from the array.

Added a type check into the IF to remedy.