use default prop when prop specified is null or undefined