looping through each class gets thorugh validation

looping through each class gets thorugh validation

I am checking if each text field that has the class tyre_data check if the value is larger than 4 characters, if so, don't go to next stage and it does???!: 

here is my code:

$('.tyre_data').each( function(){

// Tyre Tread
if($(this).val().length >= 4) {
console.log('in here');
$(this).closest(".check-option").find(".error-message").show();
$("html, body").animate({
scrollTop: $(".container").offset().top
}, 500);
return false;
}

});