Implement has method, add boolean data type