adds a check if stock is enabled. to be used as a show_on_cb callback