Fix name function is_deletable and rename var check to deletable