Fixed a method call
Made sure that when there is no content, nothing is executed.