public boolean isExpired(){
  return System.currentTimeMillis() > timestamp + duration;
}

public boolean isExpired ( ) { return System . currentTimeMillis ( ) > timestamp + duration ; }
check if the effect is old enough to have expired so that it should be removed .
