public boolean isWithinTriggerbefore(Calendar calendar) {
        // Return true, if there is no trigger before option, otherwise compare against it
        return !optionsTrigger.has("before") || calendar.getTimeInMillis() < optionsTrigger.getBefore();
    }
Checks if the trigger date is within the trigger before option, if present
src/android/trigger/TriggerHandler.java