"lockScreen && lockScreen.locked" seems to be a common pattern everywhere else. I don't know how else to know if the lockscreen is already locked when the homescreen is first instantiated.