add delete_if method to my_array_deletion_method