Removed redundant if check in Ldap.php class ldap