vue check if list is empty

JavaScript
<template v-if="!nodes || !nodes.length>
  Nothing To Show
</template>
<template v-else v-for="node in nodes">
  {{ node }}
</template>
Source

Also in JavaScript: