itemdefs null checks