Added guard to prevent none vinyl object breaking the code.