Correct condition.

Ticket: #7309