detect now returns a boolean