Use the Nothing keyword.
Code:
If PictureRight Is Nothing Then
    'the rest of the code
End If
Good luck!