Add call to HasTenant instead of isset

Hi,

This is my first time asking for a pull request. Let me know if everything is OK.

Ariel