I have two main elements of the navigation opened when the input field is checked.
I'm trying to trigger close navigation function on keyup esc only when one of the two man navigation elements is open:

```
$(document).on('keyup', this.onPressEsc.bind(this));

onPressEsc(e) {
    if (e.keyCode === 27 && this.$body.find(selectors.input).prop('checked') === true) {
        this.closeMainNav();
        this.removeOverlay();
    }
}

```

With the current implementation only the first element of the array is checked, is there any way to verify both of them?