Added a check for empty name when check version