We could move this check at the very beginning of the create function, and do the same for update and delete.