So the right thing if there are no interactions

Always return the count, not undef.
Avoid an undefined variable error
Update to version v585