Remove logging and return undefined where there are no preferences