updating check which tests if the user has the nav expanded or collapsed. This check is used to determine if the nav should be expanded should the user open a browser in a mobile sized window