I want to break for loop if .contacts element\'s style doen\'t equal display: none, but I can\'t find a way to do this inside then() fuction.
.contacts
display: none