Check for definedness of $opts{o} before using it