Prevent app from crashing if given value is null