adding a settable installedFlag global variable callable from the rest of the app to check whether the app is installed or not. If so, I will enable the alarm setting functionality, and if not I wont, because the mozAlarms object returns as null making alarms fail, when the permission is not set