scrutinizer adviced to type check it in case of null