isXHubValid not returning its value

There you go ;)