Change has_variants? to variants function.