Ok, you can do this way instead
			$tmp = isset($attr[$n])?$attr[$n]:'';