true, it does stop console errors, but it doesn't change the functionality, does it?
It may in certain circumstances.
for example:
let's say player.addHealth will return the resulting health
if(isObject(player) && player.getDatablock().getName() $= "PlayerTest")
The functionality will not change, as getDatablock is strictly for returning data. In fact, you want it to short circuit because you don't want that .getdatablock returning an error if player doesn't exist.
however
if(player.getDatablock().getName() $= "PlayerTest" && player.addHealth(25) >= 80)
The player will never gain the health if they aren't the PlayerTest datablock.