Fix the missing is_applied function