Use returned value for checking rather than template