Check while removing if apply function should be applied