fix for my previous commit, can't check for prop of null