Refactor this code to reduce complexity.
if ( words.length == 0 ) { 
  return -1; 
} 
if ( words.length == 1 ) { 
  return 0; 
}
A more concise way to write this code is to use an if-else statement:
```
if ( words.length == 0 ) { 
  return -1; 
} else if ( words.length == 1 ) { 
  return 0; 
}
```
Complete the following task based on the instruction and optional input provided.### Instruction:
Refactor this code to reduce complexity.

### Input:
if ( words.length == 0 ) { 
  return -1; 
} 
if ( words.length == 1 ) { 
  return 0; 
}

### Output:
A more concise way to write this code is to use an if-else statement:
```
if ( words.length == 0 ) { 
  return -1; 
} else if ( words.length == 1 ) { 
  return 0; 
}
```