The get pages function checks at first if the content folder exists so that the fs module don't throws an error