Added isDirectory static methods.