check if cpu exists

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>