Function to return default value if array key not set.