Check if encryption is defined