`if (!mozPerfDurations || !mozPerfDurations.length)` is enough (it's an array)