Appellate court rules in favor of Wyckoff ShopRite