public boolean hasThumbnails(){
  return thumbnails != null && thumbnails.size() > 0;
}

public boolean hasThumbnails ( ) { return thumbnails != null && thumbnails . size ( ) > 0 ; }
returns true if the attribute has thumbnails , false otherwise .
