Make pinnings script only pin if a item exists