Get command from serial

Is the above coding style of Post-8 correct (though it is working!) without checking the availability of data bytes in the Serial Buffer?