Fixing nil pointer checks