if (alleleFrequency.isDefined) { ... }