add resource url empty check method