The explicit check for undefined ensures that the value false of a boolean property is taken from serialized elements.