Updated permalink check