Updating checks for the createList method and adding support for optional parameters