No too difficult
private static void CheckForNull(object obj, Label label, string text)
{
string labelText = text;
if(obj != DbNull.Value)
{
labelText = obj.ToString();
}
label.Text = labelText;
}
CheckForNull(UserProfileInformation.Tables[0].Rows[0]["UserFirstName"],
UserFirstNameData, "not found");