Included for loop in if-block