Operation validity check