Use `whence` instead of `functions` to determine if a command exists