allows event param correct behaviour for null values