Maybe tidier as `if (!(Modernizr.indexeddb && Modernizr.indexeddb.deleteDatabase)) { ... }` ?