Haven't tried this in script but maybe crop the document ot that pixel with 'Delete Cropped Pixels' and then check if layer's bounds are not 0 as previously suggested.
↧
Haven't tried this in script but maybe crop the document ot that pixel with 'Delete Cropped Pixels' and then check if layer's bounds are not 0 as previously suggested.