local mode=${1:-$zsv_mode}
if [[ $mode != (run|log) ]]; then
[[ -n $zsv_hooks[$mode] ]] && return 0
fi
if (($+handler[$mode])); then
[[ -n $handler[$mode] ]]
return $?
fi
if (($+zsv_default_handler[$mode])); then
[[ -n $zsv_default_handler[$mode] ]]
return $?
fi
return 1
# vim: ft=zsh noet ts=4 sts=4 sw=4