Update isPublishMode.m