Is there any function condition like this?