Handle opts being undefined