Update conditional

Prior to this commit we were not checking name correctly