Added isPrintable function