[Security] Fixed the check if an interface exists.