2 methods to check the leave and a little bit difference about their application, when need to access the value, we need to use the leave check method