Null check on indexed properties