Check if ap is null, not a