action: replace condition check with ASSERT()