handle undefined value in computed val