Checking if (options.auth.client != null) in IF statement instead of (options.auth.persistence != null)