[update] make extra argument of *_for_each optional

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>