0 corresponds to Sunday and 6 to Saturday, so these would need to be a bit different. Also, always use `===` and `!==` instead of `==` and `!=`.