hasElements works