Would be great if it checked for null and just returned instead of throwing an error. [Vue warn]: Error in render: "TypeError: Cannot read property 'length' of null"