Do not attempt capture unless class is valid