isXHubValid not returning its value