TypeError thrown

Return value of webcomic_collection_exists() must be of the type bool, null returned