Fixed undefined index in external user access check