Check if something is being sanitized.

@since 0.5.0

@param int  $stackPtr        The index of the token in the stack.
@param bool $require_unslash Whether to give an error if no unslashing function
is used on the variable before sanitization.

@return bool Whether the token being sanitized.