The code is correct, it just check if not homepage will use container wrapper for main content. Because homepage we dont use container wrapper (because homepage we built in Ves Pages Builder Extension). If you remove it, maybe the layout will little not match with our design.
Also, can you please give me the error log in the line code ? because we did not have problem when use the line code.
Answer for Error on isHomePage on ves_mayshop in 1column.phtml