Getting the Error for a null value for drive item

In the if activity I have used
String.IsNullorEmpty(firstReference.ToString)
And I have deleted the assign activity