Better Explicit Var Check

Upon execution, PHP was complaining that `$terms` was an undefined
variable. The problem was determined to be an `if()` statement above the
error. That code had existed for quite some time without error, however
the error goes away with an explicit `empty()` check.

Fixes #16

Closes #15