Error thrown

Call to a member function print_content() on bool