public boolean getPermissions(final int permissionIndex) {
        if (!isInit) {
            init();
        }
        // return false if the permission index is out of bounds. 
        return !(permissionIndex < 0 || permissionIndex > permissions.length)
                && permissions[permissionIndex];
    }