Would not be easier if you set a default null value (in the props) instead of add this extra chars?