check command as function