Should this be extracted into a function checkValidSubscriptionPath(), or something similar?